(function() {

    var validationEventObject = {

        KEY_UP : 1,

        FOCUS : 2,

        BLUR : 4,

        CHANGE : 8,

        MANAGER : 16,

        CONTINUE : 32,

        isIn : function(event, events) {
            return ((event & events) == event);
        },

        parse : function(value) {
            if (value == 'keyup') {
                value = 'key_up';
            }
            
            return this[value.toUpperCase()];
        }

    };

    juliet.registerModule('juliet.validation', 'validationEvent-0.2', validationEventObject);

})();
